package com.design.softwaredesign.controller;

import com.design.softwaredesign.service.BackHomeService;
import com.design.softwaredesign.vo.DataVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author :WaiterXiaoYY
 * @description: TODO
 * @data :2020/11/3 8:56
 */

@Api(description = "管理员后台控制层-首页控制")
@RestController
@RequestMapping("/web/admin")
public class BackHomeController {
    @Autowired
    private BackHomeService backHomeService;

    @ApiOperation(value = "获取菜单列表")
    @GetMapping("/getmenu")
    public DataVo getMenu() {
        return backHomeService.getMenu();
    }
}
